package com.qianya.oa.service;

import com.github.pagehelper.PageInfo;
import com.qianya.oa.domain.SysUserMessage;
import com.qianya.oa.vo.websocket.SysUserMessageVo;

import java.util.List;

public interface SysUserMessageService {


    int deleteByPrimaryKey(Long id);

    int insert(SysUserMessage record);

    int insertSelective(SysUserMessage record);

    SysUserMessage selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserMessage record);

    int updateByPrimaryKey(SysUserMessage record);

    int batchInsert(List<SysUserMessage> list);

    PageInfo<SysUserMessageVo> getAndReadMessage(Long uid, Integer pageNum, Integer pageSize);

    Boolean sendAndSaveMessage(Long toUserId, String toUserName, Integer messageType, String messageTitle, String messageContent);

    int getUnreadCount(Long uid);
}





